﻿<script>
    var age = 20;
    var isHaveFirend = false;
    var isHaveHouse = false;
    var isHaveCar = false;
    var money = 420;
    var schoolName = "北大";

        if (age >= 28 && (!isHaveFirend && isHaveHouse && isHaveCar && (money >= 100000)) || (age >= 28 && (schoolName =="北大" || schoolName =="清华"))) {
           alert("年龄"+age+"，存款"+money+"元，"+schoolName+"学生，有结婚对象是true。");
} else{
           alert("年龄"+age+"，存款"+money+"元，"+schoolName+"学生，有结婚对象是false。");
}
</script>
